<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Hyves.net - Always in touch with your friends</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="<%=basePath%>/style/main.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/style20.css" type="text/css"
			rel="stylesheet" />
		<link href="images/favicon.ico" type="image/x-icon"
			rel="shortcut icon" />
		<link href="<%=basePath%>/style/ie6.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/pagination.css" type="text/css"
			rel="stylesheet" />
		<script language="javascript"
			src="<%=basePath%>/script/jquery1.3.2.js" type="text/javascript"></script>
		<script language="javascript"
			src="<%=basePath%>/script/jquery.pagination.js"
			type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
			$(document).ready(function(){
				/* 分页插件Pagination */
				var _total_num = $("#total").val();
				var _group_id = $("#groupId").val();
				$("#pagination").pagination(_total_num, {
							items_per_page : 12,
							next_show_always : false,
							prev_show_always : false,
							callback : pageselectCallback
						});
				function pageselectCallback(page_index, jq) {
					$.ajax({
								type : "POST",
								dataType : "html",
								url : "<%=basePath%>/forum/page",
								data : {
									gid : _group_id,
									page_index : page_index,
									maxResult : 12
								},
								success : function(data) {
									$("#table-group-forum").html(data);
								}
							});
				}
			});
		</script>
	</head>
	<body>

		<jsp:include page="/site/common/header.jsp"></jsp:include>

		<div id="page-con">
			<div id="page-con-hdr">
				<div class="box">
					<div class="groups-header">
						<div class="wrapper w4">
							<div class="section s1"></div>
						</div>
						<div class="wrapper w2">
							<div class="section s1">
								<div id="page-con-info">
									<div class="avatar small">
										<a class="avatar-link" title="${group.name }"
											href="<%=basePath%>/group/view?id=${group.id }"><img
												class="avatar-img mediaicon14" alt="${group.name }"
												src="<%=basePath%>/images/group-header/${group.groupHeader }" />
										</a>
									</div>
									<h1>
										<a href="<%=basePath%>/group/view?id=${group.id }">${group.name
											}</a>
									</h1>
									<!--  (Hyve) -->
									<ul id="profile-menu">
										<li class="first">
											<a href="http://lifestyles.hyves.nl/address/">About</a> |
										</li>
										<li>
											<a href="http://lifestyles.hyves.nl/photos/">Photos</a> |
										</li>
										<li class="current">
											<a href="http://lifestyles.hyves.nl/forum/">Messages</a> |
										</li>
										<li class="last" id="profile-menu-more">
											<a class="sub-menu-title" onclick="return false;"
												href="javascript:void(0);">More</a>
											<div class="sub-menu">
												<div class="sub-menu-bg">
													<div class="sub-menu-bg-pimp">
														<div class="sub-menu-hdr">
															<div class="sub-menu-hdr-bg"></div>
														</div>
														<ul>
															<li class="first">
																<a href="http://lifestyles.hyves.nl/members/">Members</a>
															</li>
															<li>
																<a href="http://lifestyles.hyves.nl/events/">Agenda</a>
															</li>
															<li>
																<a href="http://lifestyles.hyves.nl/polls/">Polls</a>
															</li>
															<li>
																<a href="http://lifestyles.hyves.nl/widget/">Gadgets</a>
															</li>
															<li>
																<a href="http://lifestyles.hyves.nl/blog/">Blogs</a>
															</li>
															<li class="last">
																<a href="http://lifestyles.hyves.nl/minibuzz/">Buzz</a>
															</li>
														</ul>
														<div class="sub-menu-bg-mf-pimp"></div>
													</div>
												</div>
											</div>
										</li>
									</ul>
								</div>
							</div>
							<!-- 
							<div class="section s2">
								<div id="page-con-optns">
									<div>
										<a class="disabled icon icon-lifebelt action-icon-text"
											id="toggle_pimp_off" onclick="return false;"
											href="javascript:void(0);">Show in normal design</a>
									</div>
									<div>
										<a class="icon icon-lifebelt action-icon-text"
											id="toggle_pimp_on" onclick="return false;"
											href="javascript:void(0);">Show personalized design!</a>
									</div>
								</div>
							</div>
							 -->
						</div>
						<div class="wrapper w4">
							<div class="section s1">
								<div class="box" id="tidalboard-google-ad">
									<div class="box-con">
										<div class="box-con-bg"></div>
										<div class="box-con-inner">
											<div id="adsense_f23_box" style="DISPLAY: none">
												<div class="adsbyg">
													Advertenties door Google
													<a href="http://google-feedback.hyves.nl/" target="_blank">?</a>
												</div>
												<div id="adsense_f23_content"></div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="box-con-bg"></div>
				</div>
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-hdr -->
			<div id="page-con-body">
				<div class="wrapper w4">
					<div class="section s1">
						<div class="box message-list">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										${group.name }的论坛
									</h2>
									<div class="box-actns">
										<ul>
											<li class=" first">
												<a class="icon icon-add action-icon-text"
													href="http://lifestyles.hyves.nl/forum/new/">add
													message</a>
											</li>
										</ul>
									</div>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner">
									<input id="total" type="hidden" value="${total }" />
									<input id="groupId" type="hidden" value="${group.id }" />
									<div id="table-group-forum">
										<img alt="Loading..." src="<%=basePath %>/images/loading.gif"></img>
									</div>
									<br/>
									<div id="pagination" class="pagination paging"></div>
								</div>
							</div>
						</div>
					</div>
					<!-- section s1 -->
				</div>
				<!-- wrapper w4 -->
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-body -->
			<div id="page-con-ftr">
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-ftr -->
		</div>

		<jsp:include page="/site/common/footer.jsp"></jsp:include>
	</body>
</html>